import { GCellRenderer } from "../../../../../com/mui/controls/GCellRenderer";
import { ObjCreate } from "../../common/ObjCreate";
import { ImagesConst } from "../../../resource/ImagesConst";
import { GlobalStyle } from "../../../../common/global/GlobalStyle";
//class PetLifespanItemRenderer
    
    export  class PetLifespanItemRenderer extends GCellRenderer
    {
        constructor()
        {
            super();
            this.init();
            return;
        }

        public /* override */ set data(arg1: Object)
        {
            super.data = arg1;
            this._labelTxt.htmlText = arg1.name;
            this._valueTxt.htmlText = arg1.value;
            return;
        }

        /* internal  */init(): void
        {
            ObjCreate.createBg(10, -5, 220, 2, this, ImagesConst.SplitLine);
            this._labelTxt = ObjCreate.createTextField("", 0, 0, 65, 20, this);
            this._labelTxt.autoSize = flash.text.TextFieldAutoSize.CENTER;
            this._valueTxt = ObjCreate.createTextField("", 110, 0, 65, 20, this, GlobalStyle.textFormat6);
            this._valueTxt.autoSize = flash.text.TextFieldAutoSize.CENTER;
            return;
        }

        /* internal */ /* var */_labelTxt: Object /* flash.text.TextField */;

        /* internal */ /* var */_valueTxt: Object /* flash.text.TextField */;

        /* internal */ /* var */_name: string;

        /* internal */ /* var */_value: string;
    }
